package com.zmn.uac.common.info.jd;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zmn.uac.common.info.AuthLoginCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 类描述：京东用户信息
 *
 * @author xujie
 * @since 2021/05/20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("京东授权登陆请求对象")
@EqualsAndHashCode(callSuper = true)
public class JdUserInfo extends AuthLoginCode implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 性别 (1: 男；2 女)
     */
    @JsonProperty("gender")
    @JSONField(name = "gender")
    @ApiModelProperty(value = "性别 (1: 男；2 女)", required = true)
    private Integer sex;

    /**
     * 昵称。
     */
    @JsonProperty("nickname")
    @JSONField(name = "nickname")
    @ApiModelProperty(value = "昵称", required = true)
    private String nickName;

    /**
     * 用户头像
     */
    @JsonProperty("avatar_url")
    @JSONField(name = "avatar_url")
    @ApiModelProperty(value = "用户头像", required = true)
    private String avatarUrl;

    @ApiModelProperty(value = "deviceId设备信息", notes = "默认为 UTF-8")
    private String deviceId;
}
